﻿using OD.ProjectCustomizationTool.Helpers;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace OD.ProjectCustomizationTool.Tools
{
    internal sealed class CodeAnalysisEnabler : ProjectUpdaterBase
    {
        protected override void InternalUpdate()
        {
            // Deactivate the code analysis on test projects.
            var value = !this.ProjectTypes.Contains(EProjectType.Test);
            this.SetProjectProperty(Properties.Resources.RunCodeAnalysisProjectProperty, value.ToString());
        }
    }
}
